//
//  TransacitionTableCell.m
//  Recycling
//
//  Created by jzd on 2018/5/18.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "TransacitionTableCell.h"
#import "transactionModel.h"
@interface TransacitionTableCell ()
@property (weak, nonatomic) IBOutlet UILabel *consumptionType;
@property (weak, nonatomic) IBOutlet UILabel *NumberingL;
@property (weak, nonatomic) IBOutlet UILabel *moneyNum;
@property (weak, nonatomic) IBOutlet UILabel *dateLable;


@end
@implementation TransacitionTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
}
-(void)setModel:(transactionModel *)model{
    _model = model;
    NSString *payT = ([model.PayType isEqualToString:@"0"])?@"收入":@"支出";
    NSString *payF = ([model.PayType isEqualToString:@"0"])?@"+":@"-";
    self.consumptionType.text = payT;
    self.NumberingL.text = model.TradeItem;
    
    self.moneyNum.text = [NSString stringWithFormat:@"%@%.2f",payF,model.TradeAmount];
    self.dateLable.text = model.CreateDate;
}

@end
